/*
 * Copyright (c) 2017. 深圳掌控网络有限公司. All rights reserved.
 */

package com.yiqi.lottery.feature.mine.contract;

import com.suozhang.framework.entity.bo.UserInfoBo;
import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.lottery.entity.bo.RegisterBo;
import io.reactivex.Observable;

/**
 *      LIJUWEN
 * @email yiyayiyayaoljw@gmail.com
 * @date 2017/4/11 9:06
 */
public interface BindContract {

    interface Model {

        Observable<String> getOldPhoneVerify(RegisterBo registerBo);

        Observable<String> userBindSendCode(String mobile);

        Observable<String> getNewPhoneVerify(RegisterBo registerBo);
    }

    interface View extends BaseView {

        void showOldPhoneVerifySuccess(String msg);

        void showOldPhoneVerifyError(String msg);

        void showNewPhoneVerifySuccess(String msg);

        void showNewPhoneVerifyError(String msg);

        void showSendCodeSuccess(String code);

        void showSendCodeError(String error);

    }


    interface Presenter extends BasePresenter {
        void doGetOldPhoneVerify(String phone ,String code);

        void doUserBindSendCode(String mobile);

        void doGetNewPhoneVerify(String phone ,String code);
    }
}
